<script type="text/javascript">
    function popDialogAjaxDone(json) {
        if (json.statusCode == DWZ.statusCode.ok) {
            maintainTaskJs._addPart(json.data);            
        }
        $.pdialog.closeCurrent();
    }
</script>
<style>
.partQuery span.error {
position: absolute !important;
left: 260px;
}
</style>
    <form method="post"  action="${rc.getContextPath()}/manage/maintainTask/savePart" class="pageForm required-validate" onsubmit="return validateCallback(this, popDialogAjaxDone)">
        <div class="pageContent">
        <div class="pageFormContent" layoutH="56">
         <input type="hidden" name="popId" value="${popId!''}">
            <fieldset>
            <dl>
                <dt><@label key="partCode.C,colon">备件编号：</@label></dt>
                <dd class="partQuery">
                <input class="required look" id="partLookUp.partCode" name="partCode" type="text" postField="partCode" suggestFields="partCode,partText" 
                    suggestUrl="${rc.getContextPath()}/manage/equipmentPart/partSuggest" lookupGroup="partLookUp" callback=""
                    warn="<@label key='partCode.C,doesNotExist.C'>备件编号不存在</@label>"  remote="${rc.getContextPath()}/manage/equipmentPart/validatePartCodeForSelect"/>
                    <a class="btnLook" href="${rc.getContextPath()}/manage/equipmentPart/partLookUpForOne" rel="partLookUp_dialog" width="700" height="450" lookupGroup="partLookUp" callback=""></a>
                    <input  type="hidden" id="partLookUp.partText" readonly size="22" type="text" maxlength="60" name="partText"  />
                </dd>
            </dl>
            <dl>
                <dt><@label key="quantity.C,colon">数量：</@label></dt>
                <dd><input type="text" name="quantity" class="required number"/></dd>
            </dl>
            </fieldset>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="buttonActiveGrey"><div class="buttonContent"><button type="button" class="close"><@label key="cancel.B">取消</@label></button></div></div>
                </li>
            </ul>
        </div>
        </div>
    </form>

